<?php
	//delete childs:
	$sql_delete = "DELETE FROM tblproduct_filter WHERE iParentId = $id ";
	$dbsql->query($sql_delete);
	
	//delete filter:
	$sql_delete = "DELETE FROM tblproduct_filter WHERE iId = $id ";
	$dbsql->query($sql_delete);
	
	$msg = "Delete Filter Success!";
	page_transfer($msg,$pagetr);
	exit;
    
?>